import request from '@/utils/request';

/**
 * @description 任务中心
 */
export const remoteTaskList = params => {
    return request.get('/sys/homepage/taskList', params);
};
/**
 * @description 消息中心
 */
export const remoteMessageList = params => {
    return request.get('/sys/homepage/queryMessage', params);
};
/**
 * @description 删除消息
 */
export const deleteInfo = data => {
    return request.post('/sys/homepage/deleteMessage', data);
};

/**
 * @description 工具中心-查找
 */
export const remoteToolList = params => {
    return request.get('/sys/homepage/queryTodo', params);
};

/**
 * @description 工具中心-新增
 */
export const addTool = data => {
    return request.post('/sys/homepage/insertTodo', data);
};

/**
 * @description 工具中心-更新
 */
export const updateTool = data => {
    return request.post('/sys/homepage/updateTodo', data);
};

/**
 * @description 工具中心-删除
 */
export const deleteTool = data => {
    return request.post('/sys/homepage/deleteTodo', data);
};
